<?php
include("../sql/connexionmysql.php");

$_POST['idPhoto'] = intval($_POST['idPhoto']);

$Photo = mysql_fetch_array(mysql_query('SELECT * FROM galerie WHERE idGalerie = '. $_POST['idPhoto']));

?>

<img src="<?php echo $Photo['LienImage']?>"  style="max-height:440px; max-width:440px; width: expression(this.width > 440 ? '440px' : true);height: expression(this.height > 440 ? '440px' : true);">